﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tecnorama.Depo
{
    public partial class ozellik : Form
    {
        public ozellik()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
        LinqDataContext lc = new LinqDataContext();
        private void ozellik_Load(object sender, EventArgs e)
        {
            var sorgu = from c in lc.Markalars select c;
            lc.SubmitChanges();
            comboBox1.DataSource = sorgu;

            
          
            comboBox1.ValueMember = "MarkaID";
           comboBox1.DisplayMember = "MarkaFirmaAdi";
        }
    }
}
